/*
** my_aff_comb.c for my_aff_conb in /home/goupil_r//afs/local
** 
** Made by robin goupil
** Login   <goupil_r@epitech.net>
** 
** Started on  Wed Oct  3 11:40:19 2012 robin goupil
** Last update Wed Oct  3 18:37:41 2012 robin goupil
*/

void	my_comb_print(int i, int j, int k)
{
  my_putchar(i + 48);
  my_putchar(j + 48);
  my_putchar(k + 48);

  if (i != 7)
    {
      my_putchar(',');
      my_putchar(' ');
    }
}

int	my_aff_comb()
{
  int	i;
  int	j;
  int	k;

  i = 0;

  while (i < 8)
    {
      j = i + 1;
      while (j < 9)
	{
	  k = j + 1;
	  while (k < 10)
	    {
	      my_comb_print(i, j, k);
	      k = k + 1;
	    }
	  j = j + 1;
	}
      i = i + 1;
    }

  return (0);
}
